<?php
namespace App\Tools;
/**
 * Created by PhpStorm.
 * User: HaYiiRo
 * Date: 11/30/2017
 * Time: 10:14 PM
 */
class Random
{
    public static function randomNumber($len = 6)
    {
        $length = $len;
        $min = pow(10, ($length - 1));
        $max = pow(10, $length) - 1;
        return mt_rand($min, $max);
    }
}